<h1>Listing annotations</h1>

<table>
  <tr>
    <th>Data inicio</th>
    <th>Data fim</th>
    <th>Funcao</th>
    <th>Usuario</th>
    <th>Projeto</th>
  </tr>

<% for annotation in @annotations %>
  <tr>
    <td><%=h annotation.data_inicio %></td>
    <td><%=h annotation.data_fim %></td>
    <td><%=h annotation.funcao %></td>
    <td><%=h annotation.usuario_id %></td>
    <td><%=h annotation.projeto_id %></td>
    <td><%= link_to 'Show', annotation %></td>
    <td><%= link_to 'Edit', edit_annotation_path(annotation) %></td>
    <td><%= link_to 'Destroy', annotation, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New annotation', new_annotation_path %>
